﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CarExam.Common
{
    public static class GenNum
    {
        static Random r = new Random();

        /// <summary>
        /// 生成随机数
        /// </summary>
        /// <param name="max">随机数的最大值</param>
        /// <returns></returns>
        public static int GetNum(int max = 0)
        {
            return r.Next(1, max);
        }
    }
}
